use serde::{Deserialize, Serialize};


#[derive(Serialize, Deserialize, Clone)]
pub struct FileInfo {
    pub id:String,
    pub name:String,
    pub content:String,
    pub local_path:String,
    pub is_use:bool,
    pub group_id:String,
    pub create_time:i64,
    pub creator_lid:String,
    pub creator_name:String,
    pub updater_lid:String,
    pub updater_name:String,
    pub up_ver:i16,
    pub sort:i16,
    pub tenant_id:i64,
    pub deleted:bool,
    pub update_time:i64,
}


impl Default for FileInfo {
    fn default() -> Self {
        FileInfo {
            id:String::from(""),
            name: String::from(""),
            content:String::from(""),
            local_path:String::from(""),
            is_use:false,
            group_id:String::from(""),
            create_time: 0,
            creator_lid: String::from(""),
            creator_name: String::from(""),
            updater_lid: String::from(""),
            updater_name: String::from(""),
            up_ver: 0,
            sort: 0,
            tenant_id: 0,
            deleted: false,
            update_time: 0,
            
        }
    }
}